//
#include<stdio.h>
void main()
{
   FILE *fp1,*fp2;
   char ch;
   if((fp1=fopen("readme.txt","r"))==NULL){
        printf("file1 openned error.\n");
		exit(0);
   }
   if((fp2=fopen("result.txt","w"))==NULL){
		 printf("file2 created error.\n");
		exit(0);
   }
   while((ch=fgetc(fp1))!=EOF)
	   fputc(ch,fp2);
   fclose(fp1);
   fclose(fp2);
}